import 'package:flutter/material.dart';
import 'user_search_page.dart';
import 'repository_search_page.dart';
import 'bottom_navigation.dart';
import 'profile_page.dart';

/// 应用路由名称常量
class Routes {
  /// 主页路由（底部导航）
  static const String home = '/';
  
  /// 用户搜索页面路由
  static const String userSearch = '/user-search';
  
  /// 仓库搜索页面路由
  static const String repositorySearch = '/repository-search';
  
  /// 个人页面路由
  static const String profile = '/profile';
}

/// 应用路由配置
class AppRoutes {
  /// 定义应用的路由表
  static Map<String, WidgetBuilder> get routes {
    return {
      Routes.home: (context) => const GitCodeBottomNavigation(),
      Routes.userSearch: (context) => const UserSearchPage(),
      Routes.repositorySearch: (context) => const RepositorySearchPage(),
      Routes.profile: (context) => const ProfilePage(),
    };
  }
}